package com.company.behavioral.visitor_pattern.visitor;

import com.company.behavioral.visitor_pattern.concrete_element.FulltimeEmployee;
import com.company.behavioral.visitor_pattern.concrete_element.ParttimeEmployee;

/**
 * 部门类
 * @ClassName Department
 * @Author tiezheng.han
 * @Date 2020/9/7 16:37
 **/
public abstract class Department {

    /**
     * 声明一组重载的访问方法，用于访问不同类型的具体元素
     * @param employee
     */
    public abstract void visit(FulltimeEmployee employee);
    public abstract void visit(ParttimeEmployee employee);
}
